package cn.stylefeng.guns.modular.headers.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.util.Date;

/**
 * 交易中心自动获取headers封装类
 *
 * @author 我是谭先生🐻
 * @date 2025/03/12 11:22
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class QynPfcHeadersRequest extends BaseRequest {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("主键")
    private Long headersId;

    /**
     * url
     */
    @NotBlank(message = "url不能为空", groups = {add.class, edit.class})
    @ChineseDescription("url")
    private String url;

    /**
     * cookie
     */
    @NotBlank(message = "cookie不能为空", groups = {add.class, edit.class})
    @ChineseDescription("cookie")
    private String cookie;

    /**
     * csrfToken
     */
    @NotBlank(message = "csrfToken不能为空", groups = {add.class, edit.class})
    @ChineseDescription("csrfToken")
    private String csrftoken;

}
